﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BrightIdeasSoftware;
using System.Drawing;
using System.Windows.Forms;

namespace Managistics.Warehouse.Views.Controls
{
    public class TestRenderer : BaseRenderer
    {
        public TestRenderer(): base()
        {
            
        }

        /// <summary>
        /// Draw our item
        /// </summary>
        /// <param name="g"></param>
        /// <param name="r"></param>
        public override void Render(Graphics g, Rectangle r)
        {
            this.DrawBackground(g, r);
            r = this.ApplyCellPadding(r);
            //this.DrawDescribedTask(g, r, this.Aspect as String, this.GetDescription(), this.GetImage());

            //Panel p = new Panel();
           // p.Size = new System.Drawing.Size(75, 25);
            Button b = new Button();
            b.Text = "Button";
            //p.Controls.Add(b);
            this.Container.Add(b);
        }
    }
}
